/**
 * @file   testSharedHandle.cpp
 * @author wolfhead <wolfhead@wolfhead-laptop>
 * @date   Tue Sep 20 20:07:11 2011
 * 
 * @brief  
 * 
 * 
 */
#include <acapella/shared_ptr.hpp>
#include <fcntl.h>

using namespace acapella;

typedef shared_ptr<int, HandleContent> SmartHandle;

int test()
{
    int file = open("tmp.1", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, O_DSYNC);
    printf("%d\n", file);

    SmartHandle fileHandle(file);

    return 0;
}

int main()
{
    test();

    return 0;
}
